#include "apue.h"

struct mp3_head {
	char header[3];
	char ver;
	char revision;
	char flag;
	char size[4];
}mh;

int main() {
	FILE *fp = fopen("m2.mp3", "w+");
	strcpy(mh.header, "ID3");
	mh.ver = 3;
	mh.revision = 0;
	mh.flag = 0;
	strcpy(mh.size, "1234");
	fwrite(&mh, sizeof(struct mp3_head), 1, fp);
	fprintf(fp, "%s", "\nhello, world");
	return 0;
}
